<template>
  <div id="home">
    <page-layout>
      <!-- 头部信息展示 -->
      <div class="uniform-title">工程展示</div>
      <div class="display-box">
        <div class="left">
          <!-- 前期工作 -->
          <div class="preliminary-work">
            <div class="title">前期工作</div>
            <div class="main-content">
              <div class="guys-intro">
                <div class="one-guy">
                  <span class="icon user1"></span>
                  <span class="job">主要负责人：</span>
                  <span class="name">王小雨</span>
                </div>
                <div class="one-guy">
                  <span class="icon user2"></span>
                  <span class="job">技术负责人：</span>
                  <span class="name">王小明</span>
                </div>
                <div class="one-guy">
                  <span class="icon user3"></span>
                  <span class="job">财务负责人：</span>
                  <span class="name">王骁四</span>
                </div>
              </div>
              <a-steps progress-dot :current="2">
                <a-step title="已经上传项目建议书" />
                <a-step title="已经上传可研批复" />
                <a-step title="已经上传初设批复" />
                <a-step title="已组建项目法人" />
              </a-steps>
            </div>
          </div>
          <!-- 施工准备 -->
          <div class="construction-pre">
            <div class="title">施工准备</div>
            <div class="main-content">
              <!-- 头部 -->
              <div class="header">
                <!-- 头部左边 -->
                <div class="header-left">
                  <!-- 头部左边一层 -->
                  <div class="header-left-first">
                    <div class="icon-text">
                      <span class="icon user4"></span>
                      <div class="text">
                        <div class="unit">施工单位</div>
                        <div class="name">江苏建设单位</div>
                      </div>
                    </div>
                  </div>
                  <!-- 头部左边二层 -->
                  <div class="header-left-second">
                    <div class="icon-text">
                      <span class="icon user6"></span>
                      <div class="text">
                        <div class="unit">施工标</div>
                        <div class="name">1个</div>
                      </div>
                    </div>
                    <div class="icon-text">
                      <span class="icon user7"></span>
                      <div class="text">
                        <div class="unit">施工标</div>
                        <div class="name">1个</div>
                      </div>
                    </div>
                  </div>
                </div>
                <!-- 头部右边 -->
                <div class="header-right">
                  <!-- 头部右边一层 -->
                  <div class="header-right-first">
                    <div class="icon-text">
                      <span class="icon user5"></span>
                      <div class="text">
                        <div class="unit">监理单位</div>
                        <div class="name">江苏监理单位</div>
                      </div>
                    </div>
                  </div>
                  <!-- 头部右边二层 -->
                  <div class="header-right-second">
                    <div class="icon-text">
                      <span class="icon user8"></span>
                      <div class="text">
                        <div class="unit">监理单位</div>
                        <div class="name">江苏监理单位</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 身体 -->
              <div class="body">
                <div class="body-one">
                  <div class="body-title">
                    <span class="icon icon1"></span>
                    已经完成施工内容
                  </div>
                  <div class="body-content">
                    <p>1</p>
                    <p>1</p>
                    <p>1</p>
                  </div>
                </div>
                <div class="body-one">
                  <div class="body-title">
                    <span class="icon icon2"></span>
                    已经完成施工内容
                  </div>
                  <div class="body-content">
                    <p>1</p>
                    <p>1</p>
                    <p>1</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="right">
          <!-- 投资下达 -->
          <div class="investment-realize">
            <div class="title">投资下达</div>
            <div class="main-content">
              <div class="small-card bg1">
                <div class="card-title">已下达总投资额（万元）</div>
                <div class="card-content">1000</div>
              </div>
              <div class="small-card bg2">
                <div class="card-title">已下达总投资额（万元）</div>
                <div class="card-content">1000</div>
              </div>
              <div class="small-card bg3">
                <div class="card-title">已下达总投资额（万元）</div>
                <div class="card-content">1000</div>
              </div>
            </div>
          </div>
          <div class="imp-spe">
            <!-- 建设实施 -->
            <div class="con-imp">
              <div class="title">建设实施</div>
              <div class="main-content">
                <div class="check-item" v-for="item in 6" :key="item">
                  <a-checkbox :checked="true">已完成开工备案</a-checkbox>
                </div>
              </div>
            </div>
            <!-- 专项管理 -->
            <div class="spe-adm">
              <div class="title">专项管理</div>
              <div class="main-content">
                <div class="adm-item" v-for="item in 2" :key="item">
                  <span class="icon icon3"></span>
                  已经上传本年度安全度汛文件
                </div>
              </div>
            </div>
          </div>
          <!-- 项目验收 -->
          <div class="project-receive">
            <div class="title">项目验收</div>
            <div class="main-content">
              <div class="nine-card c1">
                <div class="number">10 项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c2">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c3">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c4">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c5">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c6">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c7">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c8">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
              <div class="nine-card c9">
                <div class="number">10项</div>
                <div class="item">已完成部分工程验收</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- 中间现场图片展示 -->
      <a-card class="scene-picture" title="现场图片">
        <ScenePicture></ScenePicture>
      </a-card>
      <!-- 下方图表 -->
      <a-row :gutter="[10, 10]">
        <!-- 累计完成 -->
        <CumulativeInvestment></CumulativeInvestment>
        <!-- 每月完成 -->
        <MonthlyCompletion></MonthlyCompletion>
        <!-- 各市 -->
        <CityInvestment></CityInvestment>
        <!-- 类型 -->
        <ProjectType></ProjectType>
      </a-row>
    </page-layout>
  </div>
</template>
<script setup>
import ScenePicture from "./components/ScenePicture.vue";
import CumulativeInvestment from "./components/CumulativeInvestment.vue";
import MonthlyCompletion from "./components/MonthlyCompletion.vue";
import CityInvestment from "./components/CityInvestment.vue";
import ProjectType from "./components/ProjectType.vue";
</script>
<style lang="less" scoped>
.display-box {
  display: flex;
  height: 1000px;
  background: #f0f2f5;
  .title {
    border-left: 5px solid #6a9ff6;
    padding-left: 10px;
  }
  .left {
    flex: 1;
    margin-right: 12px;
    .preliminary-work {
      padding: 24px;
      height: calc(25% - 12px);
      margin-bottom: 12px;
      background-color: #fff;
      .guys-intro {
        display: flex;
        justify-content: space-around;
        margin: 12px 0;
        .one-guy {
          display: flex;
          align-items: center;
          .job {
            color: rgba(93, 104, 128, 1);
          }
          .icon {
            display: inline-block;
            width: 14px;
            height: 17px;
            margin: 12px;
          }
          .user1 {
            background: url("~@/assets/image/wwangImg/user1.png") no-repeat top
              left;
          }
          .user2 {
            background: url("~@/assets/image/wwangImg/user2.png") no-repeat top
              left;
          }
          .user3 {
            background: url("~@/assets/image/wwangImg/user3.png") no-repeat top
              left;
          }
        }
      }
    }
    .construction-pre {
      padding: 24px;
      height: 75%;
      background-color: #fff;
      .main-content {
        .header {
          display: flex;
          margin: 24px 0;
          padding: 0 24px;
          .header-left {
            flex: 1;
            .header-left-second {
              display: flex;
              margin-top: 12px;
              .icon-text {
                flex: 1;
              }
            }
          }
          .header-right {
            flex: 1;
            .header-right-second {
              margin-top: 12px;
            }
          }
          .icon-text {
            display: flex;
            .icon {
              display: inline-block;
              background-color: pink;
              margin-right: 12px;
              width: 44px;
              height: 44px;
            }
            .text {
              .unit {
                color: rgba(93, 104, 128, 1);
              }
            }
            .user4 {
              background: url("~@/assets/image/wwangImg/user4.png") no-repeat
                top left;
            }
            .user5 {
              background: url("~@/assets/image/wwangImg/user5.png") no-repeat
                top left;
            }
            .user6 {
              background: url("~@/assets/image/wwangImg/user6.png") no-repeat
                top left;
            }
            .user7 {
              background: url("~@/assets/image/wwangImg/user7.png") no-repeat
                top left;
            }
            .user8 {
              background: url("~@/assets/image/wwangImg/user8.png") no-repeat
                top left;
            }
          }
        }
        .body {
          margin-top: 12px;
          padding: 0 24px;
          .body-one {
            margin-bottom: 24px;
            .body-title {
              padding: 0 24px;
              height: 44px;
              opacity: 1;
              border-radius: 5px 5px, 0px, 0px;
              background: rgba(250, 251, 252, 1);
              display: flex;
              align-items: center;
              .icon {
                width: 20px;
                height: 20px;
                margin-right: 12px;
              }
              .icon1 {
                background: url("~@/assets/image/wwangImg/icon1.png") no-repeat
                  top left;
              }
              .icon2 {
                background: url("~@/assets/image/wwangImg/icon2.png") no-repeat
                  top left;
              }
            }
            .body-content {
              padding: 0 24px;
            }
          }
        }
      }
    }
  }
  .right {
    flex: 1;
    .investment-realize {
      padding: 24px;
      height: calc(25% - 12px);
      margin-bottom: 12px;
      background-color: #fff;
      .main-content {
        margin-top: 24px;
        display: flex;
        justify-content: space-around;
        .small-card {
          width: 240px;
          height: 100px;
          position: relative;
          padding: 12px 24px;
          &::after {
            content: "";
            display: inline-block;
            width: 40px;
            height: 39px;
            background: url("~@/assets/image/wwangImg/bgs.png") no-repeat top
              left;
            position: absolute;
            right: 0;
            bottom: 0;
          }
          .card-title {
            color: rgba(93, 104, 128, 1);
            margin-bottom: 12px;
          }
          .card-content {
            color: rgba(40, 40, 42, 1);
            font-size: 22px;
          }
        }
        .bg1 {
          background: url("~@/assets/image/wwangImg/bg1.png") no-repeat top left;
        }
        .bg2 {
          background: url("~@/assets/image/wwangImg/bg2.png") no-repeat top left;
        }
        .bg3 {
          background: url("~@/assets/image/wwangImg/bg3.png") no-repeat top left;
        }
      }
    }
    .imp-spe {
      height: calc(37.5% - 12px);
      margin-bottom: 12px;
      display: flex;
      .con-imp {
        padding: 24px;
        margin-right: 12px;
        flex: 35%;
        background-color: #fff;
        .main-content {
          margin-top: 24px;
          padding: 0 12px;
          .check-item {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(232, 232, 232, 1);
          }
        }
      }
      .spe-adm {
        padding: 24px;
        flex: 65%;
        background-color: #fff;
        .main-content {
          margin-top: 24px;
          .adm-item {
            display: flex;
            align-items: center;
            height: 44px;
            background-color: rgba(241, 250, 255, 1);
            padding: 0 12px;
            margin-bottom: 12px;
            .icon {
              display: inline-block;
              width: 14px;
              height: 16px;
              margin-right: 12px;
            }
            .icon3 {
              background: url("~@/assets/image/wwangImg/icon3.png") no-repeat
                top left;
            }
          }
        }
      }
    }
    .project-receive {
      padding: 24px;
      height: 37.5%;
      background-color: #fff;
      .main-content {
        margin-top: 24px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        .nine-card {
          width: 240px;
          height: 70px;
          margin-bottom: 24px;
          padding: 8px 24px;
          .number {
            font-size: 20px;
            font-weight: bold;
          }
          .item {
            color: rgba(93, 104, 128, 1);
          }
        }
        .c1 {
          background-color: #f3fcff;
        }
        .c2 {
          background-color: #f6f9ff;
        }
        .c3 {
          background-color: #fffcf3;
        }
        .c4 {
          background-color: #fef6f2;
        }
        .c5 {
          background-color: #f3fcff;
        }
        .c6 {
          background-color: #f6f9ff;
        }
        .c7 {
          background-color: #fffcf3;
        }
        .c8 {
          background-color: #f6f9ff;
        }
        .c9 {
          background-color: #fef6f2;
        }
      }
    }
  }
}
.scene-picture {
  margin: 10px 0 10px 0;
}
.uniform-title {
  padding: 0 24px;
  margin-bottom: 1.4px;
  height: 60px;
  background-color: #fff;
  font-family: "PingFang Bold";
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  &::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("~@/assets/image/wwangImg/title.png") no-repeat top left;
    background-size: 100% 100%;
    margin-right: 10px;
  }
}
// ::v-deep .ant-card-head-title {
//   font-family: "PingFang Bold";
//   display: flex;
//   align-items: center;
//   justify-content: flex-start;
//   font-size: 16px;
//   &::before {
//     content: "";
//     display: inline-block;
//     width: 24px;
//     height: 24px;
//     background: url("~@/assets/image/wwangImg/title.png") no-repeat top left;
//     background-size: 100% 100%;
//     margin-right: 10px;
//   }
// }
</style>
